﻿using System;
using Umbraco.Core.Persistence;
using Umbraco.Core.Persistence.DatabaseAnnotations;

namespace Com.UmbracoChina.Consult.Models
{
    [TableName("OnlineConsolt")]
    [PrimaryKey("ID", autoIncrement = true)]
    [ExplicitColumns]
    public class OnlineConsult
    {
        [Column("ID")]
        [PrimaryKeyColumn(AutoIncrement = true)]
        public int ID { get; set; }

        [Column("Title")]
        [Length(40)]
        public string Title { get; set; }

        [Column("ConsultType")]
        public int ConsultType { get; set; }

        [Column("Email")]
        [Length(100)]
        public string Email { get; set; }

        [Column("ConsultContent")]
        public string ConsultContent { get; set; }

        [Column("IP")]
        [Length(15)]
        public string IP { get; set; }

        [Column("IsSolve")]
        [Length(1)]
        public string IsSolve { get; set; }

        [Column("AddTime")]
        public DateTime AddTime { get; set; }
    }
}
